﻿<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE HTML>
<html>
<head>
<%@include file="/common/taglibs.jsp" %>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<%@include file="/common/css.jsp"%>
<link href="${ctx }/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css">
<title>图片列表</title>
</head>
<body>
<%@include file="/common/top.jsp" %>
<%@include file="/common/menu.jsp" %>
<section class="Hui-article-box">
<div class="pos-a" style="margin-left:1px;left:0;top:0; bottom:0; height:100%; width: 157px; border-right:1px solid #e5e5e5; background-color:#f5f5f5">
	<div>
		<shiro:hasPermission name="addMenu">
			<a class="btn btn-primary size-MINI" href="javascript:;" id="addMenu_btn"><i class="Hui-iconfont">&#xe600;</i> 添加</a>
		</shiro:hasPermission>
		<shiro:hasPermission name="updMenu">
			<a class="btn btn-primary size-MINI" href="javascript:;" id="updateMenu_btn"><i class="Hui-iconfont">&#xe60c;</i> 修改</a>
		</shiro:hasPermission>
		<shiro:hasPermission name="delMenu">
			<a class="btn btn-primary size-MINI" href="javascript:;" id="deleteMenu_btn"><i class="Hui-iconfont">&#xe609;</i> 删除</a>
		</shiro:hasPermission>
	</div>
	<ul id="menu-tree" class="ztree">
	</ul>
</div>
<div class="Hui-article" style="margin-left:150px;">
	<div class="pd-20">
		<div class="mt-20">
			<table class="table table-border table-bordered table-bg table-hover table-sort" id="resource_info">
				<thead>
					<tr class="text-c">
						<th width="50">序列</th>
						<th width="120">所属类</th>
						<th width="150">所调方法</th>
						<th>URL地址</th>
						<th width="50">状态</th>
						<th width="50">操作</th>
					</tr>
					<tr class="text-c va-m" style="display:none">
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td>
						  	<a class="btn btn-link size-MINI" name="unBind_btn" >解除</a>
						</td>
					</tr>
				</thead>
				<tbody>
					<tr class="text-c va-m">
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
	<div class="pd-20 mt-50">
		<div class="text-c">
			<input type="text" name="searchKey" id="search_key" placeholder="所属类、所调方法" style="width:250px" class="input-text">
			<a name="" id="search_resource" class="btn btn-secondary" ><i class="Hui-iconfont">&#xe665;</i>查询</a>
		</div>
		<div class="mt-20">
			<table class="table table-border table-bordered table-bg table-hover table-sort" id="resource_talbe">
				<thead>
					<tr class="text-c">
						<th width="50">序列</th>
						<th width="120">所属类</th>
						<th width="150">所调方法</th>
						<th>URL地址</th>
						<th width="50">状态</th>
						<th width="50">操作</th>
					</tr>
					<tr class="text-c va-m" style="display:none">
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td>
							<input type="hidden" id="resource_id" name="resource_id" />
							<a class="btn btn-link size-MINI" id="bindResource_btn" name="bindResource_btn">
								绑定
							</a>
						</td>
					</tr>
				</thead>
				<tbody>
					<tr class="text-c va-m" >
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
</section>
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
	<div class="modal-header">
		<h5><span></span></h5>
		<a class="close" data-dismiss="modal" aria-hidden="true">
			<i class="Hui-iconfont">&#xe6a6;</i>
		</a>
	</div>
	<div class="modal-body">
		<div id="menu_div">
			<form action="${ctx }/menu/saveMenu" method="post" class="form form-horizontal" id="form_menu">
				<input type="hidden" name="id" id="menu-id" value="" />
				<input type="hidden" name="parentMenuId" id="parent_menu_id" value="">
				<input type="hidden" name="levelNum" id="level_num" value="" />
				<div class="row cl">
					<label class="form-label col-3">英文标识：</label>
					<div class="formControls col-5">
						<input type="text" class="input-text" autocomplete="off" name="ename" id="menu-ename">
					</div>
					<div class="col-4"> </div>
				</div>
				<div class="row cl">
					<label class="form-label col-3">中文名称：</label>
					<div class="formControls col-5">
						<input type="text" class="input-text" autocomplete="off" name="cname" id="menu-cname">
					</div>
					<div class="col-4"> </div>
				</div>
				<div class="row cl">
					<label class="form-label col-3">排序值：</label>
					<div class="formControls col-5">
						<select id="menu-sequence" name="sequence" >
							<option value="">-请选择-</option>
						</select>
					</div>
					<div class="col-4"> </div>
				</div>
				<div class="row cl text-l f-12 c-red">
					<label class="col-1 c-red">注：</label>
					<div class="formControls col-11">
						1、菜单序列是按同一组同级别菜单来排序，如果当前选择的序列已有使用已使用的原菜单序列自动向后移动一位。<br />
						2、如果要增加下级菜单，请选择上一级菜单后再点击添加按钮，不选择默认添加一级菜单。
					</div>

				</div>
			</form>
		</div>
	</div>
	<div class="modal-footer">
		<div id="menu_div_btn">
			<a class="btn btn-primary submit" data-formid="#form_menu" id="menu-save">保存</a>
		</div>
	</div>
</div>
<%@include file="/common/js.jsp"%>
<script type="text/javascript" src="${ctx }/lib/Validform/Validform.js"></script>
<script type="text/javascript" src="${ctx }/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="${ctx }/js/sys_menu.js"></script>
</body>
</html>